#include<stdio.h>
int a[200000] = {0};
int main()
{
	freopen("zz_test\\aaaa2.in", "r", stdin);
	freopen("zz_test\\aaaa2.out", "w", stdout);
    
    int n = 0;
    scanf("%d", &n);
    for ( int i = 0; i < n; i++ ) {
        scanf("%d", &a[i]);
    }
    for ( int i = 0; i < n-1; i++ ) {
        for ( int j = 0; j < n - i - 1; j++ ) {
            if ( a[j] < a[j+1] ) {
                int t = a[j];
                a[j] = a[j+1];
                a[j+1] = t;
            }
        }
    }
     
    for ( int i = 0; i < n; i++ ) {
        printf("%d\n", a[i]);
    }
     
    return 0;
}
